/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springmvcstudy.mbean;

/**
 *
 * @author winnie
 */
public class AppCounter {
    private static int counter = 0;
    
    synchronized public static void count() {
        counter++;
    }
    
    synchronized public static int getCurrentCount() {
        return counter;
    }
    
    synchronized public static void reset() {
        counter = 0;
    }
    
    synchronized public static void arbitarySet(int arbitaryCounter) {
        counter = arbitaryCounter;
    }
}
